package com.xdcplus.web.common.pojo.dto.pm;

import com.xdcplus.pager.dto.PageDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 工单表(PmWo)表查询入参DTO类
 * 
 * @author Fish.Fei
 * @since 2023-02-03 15:48:19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "")
@SuppressWarnings("serial")
public class PmWoFilterDTO extends PageDTO implements Serializable {
    private static final long serialVersionUID = 231762041721966678L;

    @ApiModelProperty("工单类型 生产工单  返工工单")
    private String woCate;

    @ApiModelProperty("工单状态")
    private String woStatus;

    @ApiModelProperty("工单原计划数量（SAP同步数量）")
    private Long adtPrdQty;

    //@ApiModelProperty("工单计划数量（工单原计划数量-原材料退料-工序退料-取片退料）")
    //private Long plnPrdQty;
    //
    //@ApiModelProperty("实际计划数量（领料数量 =工单原计划数量-原材料退料）")
    //private Long asnPrdQty;

    @ApiModelProperty("拆包数量（分片拆包数量）")
    private Long rlPrdQty;

    @ApiModelProperty("下线数量（测试分选的数量）")
    private Long compPrdQty;

    @ApiModelProperty("已入库数量")
    private Long whInPrdQty;

    //@ApiModelProperty("已组箱数量")
    //private Long boxPrdQty;

    @ApiModelProperty("返工数量")
    private Long defectPrdQty;

    @ApiModelProperty("碎片数量")
    private Long scrapPrdQty;

    @ApiModelProperty("退料总数")
    private Long rwPrdQty;

    //@ApiModelProperty("是否优先结批")
    //private Long isFirstFinish;

    @ApiModelProperty("工单描述")
    private String woDsc;

    //@ApiModelProperty("来料退料数量")
    //private Long mtrlRwQty;

    @ApiModelProperty(" 主键")
    private Long id;

    @ApiModelProperty("工艺路线ID")
    private Long pathiIdFk;

    @ApiModelProperty("产品ID")
    private Long productIdFk;

    @ApiModelProperty("创建人")
    private String createdUser;

    @ApiModelProperty("创建时间")
    private Timestamp createdTime;

    @ApiModelProperty("更新人")
    private String updatedUser;

    @ApiModelProperty("更新时间")
    private Timestamp updatedTime;

    @ApiModelProperty("是否删除")
    private Long deleted;

    @ApiModelProperty("数据版本")
    private Long version;

    //@ApiModelProperty("产线")
    //private String lineId;

    @Pattern(regexp = "^[\\w\\s\\u4e00-\\u9fa5]*$",message = "工单编号非法字符")
    @ApiModelProperty("工单编号")
    private String woCode;

}
